/*
 * FXGL - JavaFX Game Library. The MIT License (MIT).
 * Copyright (c) AlmasB (almaslvl@gmail.com).
 * See LICENSE for details.
 */

package com.windea.study.kotlin.fxgl.sample.sandbox.customization

import com.almasb.fxgl.achievement.*
import com.almasb.fxgl.app.*
import java.util.*

/**
 * @author Almas Baimagambetov (almaslvl@gmail.com)
 */
class MenuSample : GameApplication() {
	override fun initSettings(settings: GameSettings) {
		settings.width = 800
		settings.height = 600
		settings.isMenuEnabled = true
		settings.enabledMenuItems = EnumSet.of(MenuItem.EXTRA)
		settings.credits = listOf(
			"Short Name - Lead Programmer",
			"LongLongLongLongLongLongLong Name - Programmer",
			"V Short - Artist",
			"Medium-Hyphen Name - Designer",
			"More Credits - 111",
			"More Credits - 222",
			"More Credits - 333",
			"More Credits - 444",
			"More Credits - 444",
			"Example of a credit name that will definitely not fit on the screen using default font",
			"More Credits - 444",
			"More Credits - 444",
			"More Credits - 555",
			"More Credits - 666",
			"More Credits - 777"
		)
		
		settings.achievements = listOf(
			Achievement("Name", "description", "", 0),
			Achievement("Name2", "description2", "", 1)
		)
	}
}


fun main(args: Array<String>) {
	GameApplication.launch(MenuSample::class.java, args)
}
